/**
 * Created with JetBrains PhpStorm.
 * User: jiangshuguang
 * Date: 14-10-28
 * Time: 下午4:21
 * To change this template use File | Settings | File Templates.
 */
(function(){
    var img = __uri('../image/iphone-share.png');

    P.share.on('beforeGetData',function(){
        P.share.data({
            'isAutoGetData':false
        });
    });

    P.share.on('sendFriends',function(){
        $(".lottery-tip").show();
    });

    P.share.data({
        'imgUrl':'http://'+location.host+img,
        'lineLink':location.href,
        'shareTitle':'看土豪如何免费获得iPhone6',
        'descContent':'不抽奖、不限量、不排队，最重要的是不要钱，土豪就该有土豪的玩法！'
    });


    $(".part2").click(function(){
        $('.recharge-tip').show();
    });

    $('.recharge-tip').click(function(){
        $(this).hide();
    });

    $(".lottery-tip").click(function(){
        $(this).hide();
    });
})();